export default {
    data() {
        return {
            checkList:[],
            showColumns:[],
        }
    },

    watch: {
        checkList: {
            handler(newVal, oldVal) {
                let a = this.columns.filter(function(x){
                    return newVal.indexOf(x.prop) >-1 ;
                });
                this.showColumns = a;
            },
            immediate: true,
            deep: true
        }
    },

    created() {

        let a = this.columns.filter(function(x){
            return x.showFlag === true;
        });
        let b = a.map( v => v.prop )
        this.checkList = b;

    },
    methods: {

         


    }


}